import * as Joi from 'joi';

export const ConfigValidation = Joi.object({
  NODE_ENV: Joi.string().valid('development', 'production', 'test', 'staging').default('development'),

  // Common
  COMMON_ENABLE_SWAGGER: Joi.boolean().default(true),
  COMMON_PORT: Joi.number().default(3000),

  // MQTT 配置
  MQTT_URL: Joi.string().default('mqtt://127.0.0.1'),
  MQTT_PORT: Joi.number().default(1883)
});
